package com.allprs.common.core.domain.entity;

import com.allprs.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 应用管理表(ProjectManagement)实体类
 *
 * @author wjf
 * @since 2021-09-14 10:06:44
 */
public class ProjectManagement extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 378199454171400764L;

    /**
     * 应用ID，主键自增
     */
    private Long projectId;
    /**
     * 应用名称
     */
    private String projcstName;
    /**
     * 应用URL
     */
    private String projcstUrl;
    /**
     * 图片地址ID
     */
    private String projcstJpg;
    /**
     * 发布人姓名
     */
    private String createName;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;
    /**
     * 描述
     */
    private String remark;
    /**
     * 标签
     */
    private String label;
    /**
     * 数据权限 1-仅自己，2-公开，3-部门内，4-平台内部
     */
    private String projectRole;
    /**
     * 不同的数据权限对应不同的类型  仅自己（本人ID），公开（open），部门内（部门ID），平台内部（平台ID）
     */
    private String roleType;

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    @NotBlank(message = "应用名称不能为空")
    @Size(min = 0, max = 30, message = "应用名称长度不能超过30个字符")
    public String getProjcstName() {
        return projcstName;
    }

    public void setProjcstName(String projcstName) {
        this.projcstName = projcstName;
    }

    @NotBlank(message = "应用链接不能为空")
    @Size(min = 0, max = 800, message = "应用链接长度不能超过800个字符")
    public String getProjcstUrl() {
        return projcstUrl;
    }

    public void setProjcstUrl(String projcstUrl) {
        this.projcstUrl = projcstUrl;
    }

    public String getProjcstJpg() {
        return projcstJpg;
    }

    public void setProjcstJpg(String projcstJpg) {
        this.projcstJpg = projcstJpg;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @NotBlank(message = "描述不能为空")
    @Size(min = 0, max = 100, message = "描述长度不能超过100个字符")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @NotBlank(message = "标签不能为空")
    @Size(min = 0, max = 30, message = "标签长度不能超过30个字符")
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getProjectRole() {
        return projectRole;
    }

    public void setProjectRole(String projectRole) {
        this.projectRole = projectRole;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

}
